Homography estimation apparatus and method

ABSTRACT

Disclosed are a homography estimation apparatus and method. A down-sampling unit reduces the reference image and the target image to the same size to generate down-sampled images. A feature point extraction unit extracts feature points from the reference image and the target image down-sampled to the same size, respectively. An outlier removal unit matches the feature points extracted from the reference image with the feature points extracted from the target image, and detects and removes outliers, which are feature points that do not match, from the matched feature points. A homography estimation unit estimates a homography using feature points from which outliers are removed. A reference image correction unit corrects the reference image using the estimated homography.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority to and the benefit of Korean Application No. 10-2012-0149478 filed on Dec. 20, 2012 and Korean Application No. 10-2013-0032320 filed on Mar. 26, 2013, which applications are incorporated herein by references.

TECHNICAL FIELD

The present invention relates to a homography estimation apparatus and method, and more particularly, to a homography estimation apparatus and method for reducing sizes of a reference image and a target image and extracting feature points to estimate a homography.

RELATED ART

In projective geometry, a homography represents a relationship between two planes as a 3×3 matrix. A homography is used in representing a relationship between a real-world plane and an image of the plane produced by a camera. Homography is used to match high-definition (HD) images to form an ultra high-definition (UHD) image, which is a recent issue. Japan leads the world in ultra high-definition broadcasting, and NHK demonstrated ultra high-definition broadcasting through satellite and cable networks in 2010 and will broadcast programs using ultra high-definition broadcasting in 2020. A UHD TV is a recent issue, and LG electronics announced an 84-inch 3D UHD TV at CES in 2013. 4G broadcasting services such as 4K and 8K will be provided in the future and UHD technology will replace HD technology.

To provide a brief description of some conventional art documents, Korean Laid-Open Patent Application No. 2012-0021666, entitled “PANORAMA IMAGE GENERATING METHOD,” discloses a method of generating a panorama image using a feature extraction method having robust size and rotation conversion and enhanced processing speed.

Also, Korean Laid-Open Patent Application No. 2008-0083525, entitled “METHOD FOR STABILIZING DIGITAL IMAGE WHICH CAN CORRECT THE HORIZONTAL SHEAR DISTORTION AND VERTICAL SCALE DISTORTION,” discloses a method for correcting an image using a homography representing a correlation between two image frames used in a typical panorama image event when an image is distorted as well as when the image is moved in a horizontal/vertical direction because of hand shaking.

SUMMARY

The present invention is directed to a homography estimation apparatus and method that down-sample a reference image and a target image to thereby significantly reduce a feature point extraction time and a homography estimation time, and also a time required to calculate a homography for an original image from the estimated homography.

The present invention is also directed to a computer-readable recording medium for executing on a computer a homography estimation method that down-samples a reference image and a target image to thereby significantly reduce a feature point extraction time and a homography estimation time, and also a time required to calculate a homography for an original image from the estimated homography.

According to an aspect of the present invention, there is provided a homography estimation apparatus including: a down-sampling unit configured to reduce a reference image and a target image to the same size to generate down-sampled images; a feature point extraction unit configured to extract feature points from the reference image and the target images that are down-sampled to the same size, respectively; an outlier removal unit configured to match the feature points extracted from the reference image with the feature points extracted from the target image to detect and remove outliers, which are feature points that do not match, from the matched feature points; a homography estimation unit configured to estimate a homography using the feature points from which the outliers have been removed; and a reference image correction unit configured to correct the reference image using the estimated homography.

According to another aspect of the present invention, there is provided a homography estimation method performed by a homography estimation apparatus including: (a) a down-sampling operation of reducing a reference image and a target image to the same size to generate down-sampled images; (b) a feature point operation of extracting feature points from the reference image and the target images that are down-sampled to the same size, respectively; (c) an outlier removal operation of matching the feature points extracted from the reference image with the feature points extracted from the target image to detect and remove outliers, which are feature points that do not match, from the matched feature points; (d) a homography estimation operation of estimating a homography using the feature points from which the outliers have been removed; and (e) a reference image correction operation of correcting the reference image using the estimated homography.

According to still another aspect of the present invention, there is provided a computer-readable recording medium storing a computer program for executing the method described above.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objects, features and advantages of the present invention will become more apparent to those of ordinary skill in the art by describing in detail exemplary embodiments thereof with reference to the accompanying drawings, in which:

FIG. 1 is a view showing a panorama image to which a homography estimation method is applied according to the present invention;

FIG. 2 is a block diagram showing a configuration of a homography estimation apparatus according to the present invention;

FIGS. 3 and 4 are views showing an image having a feature point extracted from an input image using a SIFT algorithm;

FIG. 5 is a view showing matching between a feature point of a reference image and a feature point extracted from a target image;

FIG. 6 is a view showing matching between a feature point of a reference image and a feature point extracted from a target image to remove outliers, which are feature points that do not match;

FIG. 7 is a view showing an image from which outliers have been removed using an RANSAC algorithm;

FIG. 8 is a view showing 4 coordinates (x, y) in the reference image and target image in order to calculate the homography in a state in which outliers have been removed;

FIG. 9 is a view showing down-sampling of an input original image n times to estimate a homography; and

FIGS. 10 to 17 are views comparing an image obtained using a homography estimation method according to the present invention with an image obtained using a conventional method.

DETAILED DESCRIPTION

Hereinafter, a homography estimation apparatus and method according to the present invention will be described in detail with reference to the accompanying drawings.

FIG. 1 is a view showing a panorama image to which a homography estimation method may be applied according to the present invention. The panorama image is image processing technology that receives multiple images and combines them into one image. That is, as shown in FIG. 1, it can be seen that two different input images are combined into one image. In other words, a panorama image may be generated by matching a reference image with a target image using a homography estimated through the homography estimation apparatus and method according to the present invention.

FIG. 2 is a block diagram showing a configuration of a homography estimation apparatus 200 according to the present invention. The homography estimation apparatus 200 according to the present invention includes a down-sampling unit 210, a feature point extraction unit 220, an outlier removal unit 230, a homography estimation unit 240, a reference image correction unit 250, and a repetition unit 260.

The down-sampling unit 210 reduces the reference image and the target image to the same size to generate down-sampled images. Referring to FIG. 9, images obtained by down-sampling the original image to one half, one third, . . . , one n-th are shown. That is, an estimation method performed by the homography estimation apparatus 200 according to the present invention is a homography estimation method based on the down-sampling of each image.

The feature point extraction unit 220 extracts feature points from the reference image and the target image down-sampled to the same size, respectively. In this case, the feature points may be extracted from the images using a Scale Invariant Feature Transform (SIFT) algorithm. The SIFT algorithm is well known to those skilled in the art, so a detailed description thereof will be omitted. Referring to FIGS. 3 and 4, it can be seen that an input image and an image having feature points extracted from the input image are compared and shown.

As described above, a process of extracting feature points from the reference image and the target image and then matching the feature points extracted from the images is performed. In this case, each feature point has coordinate information (x, y) and descriptor information, and an error between feature points may be found by calculating an error in a descriptor, where a point having a low error may be a matching point. Referring to FIG. 5, any feature point is selected from among the feature points of the reference image, and then errors are calculated between the feature point and feature points extracted from the target point. Finally, the matching point is a feature point having the smallest error.

Also, when the feature points are matched between the reference image and the target image, mismatches should be removed. In this case, an accurate match is referred to as an inlier, and an inaccurate match is referred to as an outlier. Referring to FIG. 6, detection of the non-matching outliers is shown. The detected outliers are removed by the outlier removal unit 230. In this case, the outlier removal unit 230 may detect and remove the outliers using a RANdom SAmple Consensus (RANSAC) algorithm. The RANSAC algorithm is well known to those skilled in the art, so a detailed description thereof will be omitted. Referring to FIG. 7, it can be seen that an image having feature points extracted from the input image and an image from which outliers are removed are compared and shown.

The homography estimation unit 240 estimates a homography using feature points from which outliers are removed. The homography may represent a relationship between the reference image and the target image as a matrix equation in Equation (1).

X=HX″  (1)

Here, X are coordinates of the reference image, X′ are coordinates of the target image, H is a homography represented as a matrix

$\begin{bmatrix} h_{11} & h_{12} & h_{13} \\ h_{21} & h_{22} & h_{23} \\ h_{31} & h_{32} & h_{33} \end{bmatrix},$

and h₃₃ is a scale factor, which is set to be 1.

To calculate the homography, four points (x, y) for each image are needed. Referring to FIG. 8, four points corresponding to inliers among feature points extracted from the reference image and target image are shown.

In this case, the homography may be calculated using Equation (2) and Equation (3) through a Direct Linear Transform (DLT) algorithm. The DLT algorithm is well known to those skilled in the art, so a detailed description thereof will be omitted.

$\begin{matrix} {{\begin{bmatrix} O^{T} & {w_{i}^{\prime}X_{i}^{T}} & {y_{i}^{\prime}X_{i}^{T}} \\ {w_{i}^{\prime}X_{i}^{T}} & O^{T} & {x_{i}^{\prime}X_{i}^{T}} \end{bmatrix}\begin{pmatrix} h^{1} \\ h^{2} \\ h^{3} \end{pmatrix}} = {{{0\begin{bmatrix} O^{T} & {{- w_{i}^{\prime}}X_{i}^{T}} & {y_{i}^{\prime}X_{i}^{T}} \\ {w_{i\;}^{\prime}X_{i}^{T}} & O^{T} & {{- x_{i}^{\prime}}X_{i\;}^{T}} \end{bmatrix}}\begin{pmatrix} h^{1} \\ h^{2} \\ h^{3} \end{pmatrix}} = 0}} & (2) \end{matrix}$

Here, X_(i) ^(T):(x_(i), y_(i), w_(i)) is the reference image, and X_(i) ^(T′):(x_(i)′, y_(i)′, w_(i)′) is the target image.

$\begin{matrix} {\begin{bmatrix} 0 & 0 & 0 & {{- w_{i}^{\prime}}x_{i}} & {{- w_{i}^{\prime}}y_{i}} & {{- w_{i}^{\prime}}w_{i}} & {y_{i}^{\prime}x_{i}} & {y_{i}^{\prime}y_{i}} & {y_{i}^{\prime}w_{i}} \\ {w_{i}^{\prime}x_{i}} & {w_{i}^{\prime}y_{i}} & {w_{i}^{\prime}w_{i}} & 0 & 0 & 0 & {{- x_{i}^{\prime}}x_{i}} & {{- x_{i}^{\prime}}y_{i}} & {{- x_{i}^{\prime}}w_{i}} \end{bmatrix}\begin{pmatrix} h_{11} \\ h_{21} \\ h_{31} \\ h_{12} \\ h_{22} \\ h_{32} \\ h_{13} \\ h_{23} \\ h_{33} \end{pmatrix}} & (3) \end{matrix}$

Here, I=1, 2, 3, and 4. Also, an unknown value H is calculated through Singular Value Decomposition (SVD).

The repetition unit 260 down-samples an image, extracts feature points, removes outliers, and repeats the process of estimating a homography n times (n is a positive integer equal to or greater than 2), thus estimating n homographies having different sizes, as shown is FIG. 9.

The reference image correction unit 250 corrects the reference image using the estimated homography. That is, the reference image correction unit 250 calculates a homography error, which is the difference between coordinates of the reference image and estimated homography coordinates, for each of the n homographies estimated by the repetition unit 260, selects a homography having the smallest error value among the homography error values, and corrects the reference image using the selected homography. A panorama image generation unit (not shown) may match the target image with the reference image to generate a panorama image using the homography estimated via the process.

In this case, the total calculation time required to down-sample the image n times and calculate a homography several times is longer than the time required to calculate a homography for the original image. The difference increases as the size of the image increases. In this case, the number of repetitions may be determined on the basis of the number of feature points that are down-sampled and extracted. That is, if the number of feature points is too small, the number of repetitions may increase.

$\begin{matrix} {t > {\sum\limits_{i = 2}^{n}t_{i}}} & (4) \end{matrix}$

Here, t is the time required to calculate the homography for the original image, and t_(i) is the time required to i-th down-sample the original image and then calculate the homography.

Table (1) shows test results for a real image, in which a homography is estimated for each down-sampled image to calculate projection errors for the reference image and the target image, respectively, using Equation (5). In this case, it can be seen that the smallest scale of the down-sampling is one seventh. Accordingly, the homography estimated when down-sampled to one seventh is selected as an optimal homography and may be used as H′ in Equation (6).

TABLE (1) Total time without scale scale 1 ½ ⅓ ¼ ⅕ ⅙ 1/7 ⅛ 1(s) Homography 4.0164 2.9108 2.9325 2.1446 3.7637 1.7559 2.4822 Error Time(s) 88.8566 15.3202 5.7143 3.1452 1.9317 1.3442 0.9696 0.7099 29.1351

$\begin{matrix} {{ɛ} = {{X - \hat{X}}}} & (5) \\ {H = {{\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & {1/m} \end{bmatrix}{H^{\prime}\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & m \end{bmatrix}}} = \begin{bmatrix} h_{11} & h_{12} & h_{13} \\ h_{21} & h_{22} & h_{23} \\ h_{31} & h_{32} & h_{33} \end{bmatrix}}} & (6) \end{matrix}$

Here, H is a corrected homography, H′ is a homography calculated from a down-sampled image, m is a scale factor that indicates the extent to which an image is reduced when H′ is calculated, h₁₃ and h₂₃ are values obtained by multiplying by m, and h₃₁ and h₃₂ are values obtained by multiplying by 1/m.

The conventional method has a limitation in that it takes a long time to extract feature points and remove outliers from the feature points when calculating a homography of a high-definition image such as an ultra high-definition (UHD) image. Furthermore, an inaccurate homography or no homography may be calculated. However, the homography estimation method according to the present invention down-samples an input image n times (n is a positive integer equal to or greater than two), extracts feature points from the input image, and remove outliers from the feature points, thereby improving its rate. Also, the method calculates error values of homographies of the down-sampled images, selects an optimal homography having the smallest error value, and performs correction to apply the selected homography to the original image size.

A result image obtained by applying the homography estimation method according to the present invention may be seen in FIGS. 10 to 17. Specifically, referring to FIG. 10, each image used in an experiment had a size of 2048*1536. Referring to FIG. 11, when comparing the two result images obtained by combining the reference image and the target image shown in FIG. 10 into one panorama image, it seems that there is little difference between the result images, but the time required to produce the result image according to the present invention is reduced to about one-third of the time taken by the conventional method. Referring to FIG. 12, each image used in an experiment had a size of 2048*1536. Referring to FIG. 13, it also seems that there is little difference between the result images, but the time required to produce the result image according to the present invention is reduced to about one-third of the time taken by the conventional method. Referring to FIG. 14, each image used in an experiment had a size of 3264*2448. Referring to FIG. 15, it also seems that there is little difference between the result images, but the time required to produce the result image according to the present invention is reduced to about one-fifth of the time taken by the conventional method. Referring to FIG. 16, each image used in an experiment had a size of 2458*1030. Referring to FIG. 17, it also seems that there is little difference between the result images, but the time required to produce the result image according to the present invention is reduced to about one half of the time taken by the conventional method. That is, the required time is greatly reduced when the homography estimation method according to the present invention is applied to an image, especially a large image.

The homography estimation apparatus and method can down-sample the reference image and the target image to thereby significantly reduce a feature point extraction time and a homography estimation time, and also a time required to calculate a homography for an original image from the estimated homography.

The invention can also be embodied as computer-readable codes on a computer-readable recording medium. The computer-readable recording medium is any data storage device that can store data which can thereafter be read by a computer system. Examples of the computer-readable recording medium include a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage. Further, the recording medium may be implemented in the form of carrier waves such as those used in Internet transmission. The computer-readable recording medium can also be distributed over computer systems connected through a wired/wireless communication network so that the computer-readable code is stored and executed in a distributed fashion.

While the present invention has been particularly shown and described with reference to preferred embodiments thereof, it should not be construed as being limited to the embodiments set forth herein. It will be understood by those skilled in the art that various changes in form and details may be made to the described embodiments without departing from the spirit and scope of the present invention as defined by the following claims. 

What is claimed is:
 1. A homography estimation apparatus comprising: a down-sampling unit configured to reduce a reference image and a target image to the same size to generate down-sampled images; a feature point extraction unit configured to extract feature points from the reference image and the target images that are down-sampled to the same size, respectively; an outlier removal unit configured to match the feature points extracted from the reference image with the feature points extracted from the target image to detect and remove outliers, which are feature points that do not match, from the matched feature points; a homography estimation unit configured to estimate a homography using feature points from which the outliers have been removed; and a reference image correction unit configured to correct the reference image using the estimated homography.
 2. The homography estimation apparatus of claim 1, further comprising a panorama image generation unit configured to match the reference image with the target image using the estimated homography to generate a panorama image.
 3. The homography estimation apparatus of claim 1, further comprising a repetition unit configured to repeat a process performed by the down-scaling unit, the feature point extraction unit, the outlier removal unit, and the homography estimation unit, n times (n is a positive integer equal to or greater than two) to estimate n homographies, each for a different size.
 4. The homography estimation apparatus of claim 3, wherein the reference image correction unit calculates a homography error for each of the n homographies estimated by the repetition unit, the homography error being a difference between coordinates of the reference image and coordinates of the estimated homography, selects a homography corresponding to the smallest error among the homography errors, and corrects the reference image using the selected homography.
 5. The homography estimation apparatus of claim 4, wherein the feature point extraction unit extracts feature points using a Scale Invariant Feature Transform (SIFT) algorithm.
 6. The homography estimation apparatus of claim 5, wherein the outlier removal unit detects and removes outliers, which are feature points that do not match, using a RANdom SAmple Consensus (RANSAC) algorithm.
 7. The homography estimation apparatus of claim 4, wherein the reference image correction corrects the reference image using an equation: ${H = {{\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & {1/m} \end{bmatrix}{H^{\prime}\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & m \end{bmatrix}}} = \begin{bmatrix} h_{11} & h_{12} & h_{13} \\ h_{21} & h_{22} & h_{23} \\ h_{31} & h_{32} & h_{33} \end{bmatrix}}},$ wherein H is a corrected homography, H′ is a homography calculated from a down-sampled image, m is a scale factor that indicates the extent to which an image is reduced when H′ is calculated, h₁₃ and h₂₃ are values obtained by multiplying by m, and h₃₁ and h₃₂ are values obtained by multiplying by 1/m.
 8. The homography estimation apparatus of claim 1, wherein the feature point extraction unit extracts feature points using a Scale Invariant Feature Transform (SIFT) algorithm.
 9. The homography estimation apparatus of claim 8, wherein the outlier removal unit detects and removes outliers, which are feature points that do not match, using a RANdom SAmple Consensus (RANSAC) algorithm.
 10. A homography estimation method performed by a homography estimation apparatus, comprising: (a) a down-sampling operation of reducing a reference image and a target image to the same size to generate down-sampled images; (b) a feature point operation of extracting feature points from the reference image and the target images that are down-sampled to the same size, respectively; (c) an outlier removal operation of matching the feature points extracted from the reference image with the feature points extracted from the target image to detect and remove outliers, which are feature points that do not match, from the matched feature points; (d) a homography estimation operation of estimating a homography using feature points from which the outliers have been removed; and (e) a reference image correction operation of correcting the reference image using the estimated homography.
 11. The homography estimation method of claim 10, further comprising (f) a panorama image generation operation of matching the reference image with the target image using the estimated homography to generate a panorama image.
 12. The homography estimation method of claim 10, wherein n homographies are estimated by repeating operations (a) to (d) n times (n is a positive integer equal to or greater than two), each for a different size.
 13. The homography estimation method of claim 12, wherein operation (e) comprises calculating a homography error for each of the n homographies estimated by the repetition, the homography error being a difference between coordinates of the reference image and coordinates of the estimated homography, selecting a homography corresponding to the smallest error among the homography errors, and correcting the reference image using the selected homography.
 14. The homography estimation method of claim 10, wherein operation (b) comprises extracting feature points using a Scale Invariant Feature Transform (SIFT) algorithm.
 15. The homography estimation method of claim 12, wherein operation (c) comprises detecting and removing the outliers, which are feature points that do not match, using a RANdom SAmple Consensus (RANSAC) algorithm.
 16. The homography estimation method of claim 12, wherein operation (e) comprises correcting the reference image using an equation: ${H = {{\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & {1/m} \end{bmatrix}{H^{\prime}\begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & m \end{bmatrix}}} = \begin{bmatrix} h_{11} & h_{12} & h_{13} \\ h_{21} & h_{22} & h_{23} \\ h_{31} & h_{32} & h_{33} \end{bmatrix}}},$ wherein H is a corrected homography, H′ is a homography calculated from a down-sampled image, m is a scale factor that indicates the extent to which an image is reduced when H′ is calculated, h₁₃ and h₂₃ are values obtained by multiplying by m, and h₃₁ and h₃₂ are values obtained by multiplying by 1/m.
 17. The homography estimation method of claim 12, wherein operation (b) comprises extracting feature points using a Scale Invariant Feature Transform (SIFT) algorithm.
 18. A non-transitory computer-readable media having recorded thereon a program for executing the homography estimation method of claim
 10. 